import React, {Component} from 'react';
import { Menu, Icon ,Tabs } from 'antd';
import OutCourse from './outcourse/OutCourse';
import InterCourse from './intercourse/InterCourse';
const TabPane = Tabs.TabPane;
function callback(key) {
console.log(key);
}
class Course extends Component {
    render(){
        return(
            <div>
            <Tabs defaultActiveKey="1" onChange={callback}>
            <TabPane tab="内部课程" key="1">
            <OutCourse/>
            </TabPane>
            <TabPane tab="外部课程" key="2">
            <InterCourse/>
            </TabPane>
            </Tabs>
            </div>
        )
    }
}
export default Course;